# -*- coding: utf-8 -*-
import wx.stc
import keyword
import keyword_py

def genKeywords():
	return keyword.kwlist + keyword_py.kwlist


def setFont(self):
	# Python styles
	self.StyleSetSpec(wx.stc.STC_P_DEFAULT, 'fore:#000000')
	# Comments
	self.StyleSetSpec(wx.stc.STC_P_COMMENTLINE, 'fore:#008000')
	self.StyleSetSpec(wx.stc.STC_P_COMMENTBLOCK, 'fore:#008000')
	# Numbers
	self.StyleSetSpec(wx.stc.STC_P_NUMBER, 'fore:#008080')
	# Strings and characters
	self.StyleSetSpec(wx.stc.STC_P_STRING, 'fore:#800080')
	self.StyleSetSpec(wx.stc.STC_P_CHARACTER, 'fore:#800080')
	# Keywords
	self.StyleSetSpec(wx.stc.STC_P_WORD, 'fore:#000080,bold')
	# Triple quotes
	self.StyleSetSpec(wx.stc.STC_P_TRIPLE, 'fore:#800080,back:#FFFFEA')
	self.StyleSetSpec(wx.stc.STC_P_TRIPLEDOUBLE, 'fore:#800080,back:#FFFFEA')
	# Class names
	self.StyleSetSpec(wx.stc.STC_P_CLASSNAME, 'fore:#0000FF,bold')
	# Function names
	self.StyleSetSpec(wx.stc.STC_P_DEFNAME, 'fore:#008080,bold')
	# Operators
	self.StyleSetSpec(wx.stc.STC_P_OPERATOR, 'fore:#800000,bold')
	# Identifiers. I leave this as not bold because everything seems
	# to be an identifier if it doesn't match the above criterae
	self.StyleSetSpec(wx.stc.STC_P_IDENTIFIER, 'fore:#604040')

